#ifndef CONFIG_H
#define CONFIG_H
#include <QString>

//MySql数据库配置信息
const QString DB_DRIVER = "QMYSQL";             //数据库driver
const QString DB_HOST_NAME = "127.0.0.1";       //主机IP
const int DB_PORT = 3306;                       //端口
const QString DB_USER_NAME = "root";            //登录数据库用户名
const QString DB_PASSWORD = "123123";           //登录数据库密码
const QString DB_DATABASE_NAME = "testeiot";    //数据库名
//
const QString BEFORE_CODE = "WHCCFcom";
const QString AFTER_CODE = "cn_whccf";

//用户信息
struct UserInfo
{
    int id;
    QString name;
    QString password;
    int auth;
};

//student信息
struct StudentInfo
{
    int id;
    QString name;
    int gender;
    int age;
    QString address;
};

#endif // CONFIG_H
